﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

using System.ComponentModel.DataAnnotations;

namespace WpfApp1.Models
{
    public class LoginOutput
    {
        
        /// <summary>
        /// 用户Id
        /// </summary>
        public int Id { get; set; }

        /// <summary>
        /// 用户名
        /// </summary>
        [Required, MinLength(3)]
        public string Account { get; set; }

        /// <summary>
        /// 用户的专业ID
        /// </summary>
        public int MajorID { get; set; }

        /// <summary>
        /// Token
        /// </summary>
        public string AccessToken { get; set; }
    }
}
